/*
 * @Author: huangyingli
 * @Date: 2023-02-23 15:35:46
 * @LastEditors: huangyingli
 * @LastEditTime: 2023-02-28 13:51:42
 * @Description:
 */
import axios from './index';

import { URLS } from '../config/urls';

export function ComponentAddRequest(config) {
  return axios({
    method: 'post',
    url: URLS.COMPONENT.ADD,
    ...config,
  });
}

export function ComponentListRequest(config) {
  return axios({
    method: 'post',
    url: URLS.COMPONENT.LIST,
    ...config,
  });
}

export function ComponentPublish(config = {}) {
  return axios({
    method: 'get',
    url: URLS.COMPONENT.PUBLISH,
    ...config,
  });
}
